/**
 * 
 */
package com.xb.rmi.server.test;

import java.rmi.RemoteException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author kexue
 *
 */
public class ServerMain {
	private static Logger logger = LoggerFactory.getLogger(ServerMain.class);

	public static void main(String[] args) throws RemoteException {

		logger.info("开始初始化服务端");

		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				"classpath:applicationContextServer.xml");
		logger.info("注册服务端");

	//	TestTemplate template = (TestTemplate) applicationContext.getBean("templateInstance");
//		logger.info(template.toString());
//		logger.info( applicationContext.getBean("templateInstance").toString());
//		template.insert();
	}
}
